<?php

class ItemType {
	const Topic = 1;
	const Article = 2;
	const WebLink = 3;
	const Download = 4;
	const Poll = 5;
	const News = 6;
	const Gallery = 8;
	const Ad = 9;	
	const Event = 10;
	const Fiche = 11;

	function get_type_string($int) {
		switch($int) {
			case ItemType::Topic: 
				return "topic";
			case ItemType::Article: 
				return "article";
			case ItemType::WebLink: 
				return "link";
			case ItemType::Download: 
				return "download";
			case ItemType::Poll:
				return "poll";
			case ItemType::News: 
				return "news";
			case ItemType::Gallery: 
				return "gallery";
			case ItemType::Ad: 
				return "ad";
			case ItemType::Event: 
				return "event";
			case ItemType::Fiche: 
				return "fiche";
			default:
				errorpage(8);
		}

	}
}

?>
